import useRequest from '@/utils/request'

const request = useRequest({})
// 获取redis数据
export function getRedis(params: any) {
  return request.get('/system/common/getRedis', {
    params
  })
}

// 添加redis数据
export function addRedis(data: any) {
  return request.post('/system/common/addRedis', data)
}

// 查询操作历史数据
export function getHistoryLog(params: any) {
  return request.get('/system/historyLog/list', {
    params
  })
}